Electrocorticography for neural recording and electrical stimulation